package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author xiexuxin
 * @date 2023-11-16
 */
@Data
@TableName("yx_video_coin_exchange")
@ApiModel("视频币兑换实体类")
public class YxVideoCoinExchangeEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "exchange_rules_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键ID")
    private Long exchangeRulesId;

    @TableField("wedding_candies_last")
    @ApiModelProperty("兑换前喜糖")
    private BigDecimal weddingCandiesLast;

    @TableField("wedding_candies")
    @ApiModelProperty("喜糖")
    private BigDecimal weddingCandies;

    @TableField("exchange_video_coins")
    @ApiModelProperty("兑换视频币")
    private Integer exchangeVideoCoins;

    @TableField("exchange_time")
    @ApiModelProperty("兑换时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date exchangeTime;

    @TableField("exchange_shop_id")
    @ApiModelProperty("兑换店铺id")
    private Long exchangeShopId;

    @TableField("exchange_shop_name")
    @ApiModelProperty("兑换店铺名称")
    private String exchangeShopName;

    @TableField("status")
    @ApiModelProperty("状态")
    private Integer status;

    @TableField("remark")
    @ApiModelProperty("备注")
    private String remark;
}
